package com.ch.exception;

import lombok.Getter;

@Getter
public class myexception extends RuntimeException{
    private int code;
    public myexception(int code,String msg){
        super(msg);
        this.code=code;
    }
    public myexception(String msg){
        super(msg);
    }
    public myexception(ErrorCode errorCode){
        super(errorCode.getMsg());
        this.code=errorCode.getCode();
    }
    public myexception(){}

}
